#include <iostream>
#include <unordered_set>
#include <vector>
using namespace std;
using LL=long long;
int main() {
	
	unordered_set<LL> setRow;
	unordered_set<LL> setCol;
	unordered_set<LL> set45;
	unordered_set<LL> set135;
	int n;
	cin>>n;
	int last=-1;
	for(int i=1;i<=n;++i){
		int x,y;
		cin>>x>>y;
		if(last!=-1){
			continue;
		}
		if(setRow.count(x) || setCol.count(y) || set45.count(x-y) || set135.count(x+y) ){
			last=i;	
		}
		setRow.insert(x);
		setCol.insert(y);
		set45.insert(x-y);
		set135.insert(x+y);
	}
	int t;
	cin>>t;
	while(t--){
		int idx;
		cin>>idx;
		if(idx<last || last==-1){
			cout<<"No"<<endl;
		}
		else{
			cout<<"Yes"<<endl;
		}
	}
	
	
	return 0;
}
